package com.car.service.impl;

import com.car.dao.FindCarDao;
import com.car.dao.impl.FindCarDaoImpl;
import com.car.service.ShowCarService;
import com.domain.Car;
import com.domain.Pagination;

public class ShowCarServiceImpl implements ShowCarService {
	private FindCarDao findCarDao = new FindCarDaoImpl();
	@Override
	public void show(Pagination<Car> pagination) {
		pagination.setCount( findCarDao.findCount() );
		pagination.setList( findCarDao.findList(pagination) );
	}

}
